package ldkxingzhe.ldkxingzhedemo.view;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.ImageView;

import ldkxingzhe.ldkxingzhedemo.R;
import ldkxingzhe.ldkxingzhedemo.utils.LogDemo;

/**
 * Created by Administrator on 2016/3/4.
 */
public class ShaderActivity extends Activity{
    @SuppressWarnings("unused")
    private static final String TAG = "ShaderActivity";

    private ImageView imageView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shader);
        imageView = (ImageView) findViewById(R.id.image_view);
        Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.ic_notification);
        CircleDrawable drawable = new CircleDrawable(bitmap, 560, 2);
        drawable.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight());
        LogDemo.v(TAG, "before setImageDrawable");
        imageView.setImageDrawable(drawable);
    }
}
